13. Exercise: Display Three Fragments
Display All Three BodyPartFragments
In this exercise, you'll build on top of what you already know to add the rest of the BodyPartFragments to the screen! You'll also learn how to dynamically set fragment resources
Exercise Code
Exercise: TFragments.02-Exercise-DisplayThreeFragments
Setting image resources
The tricky part of this exercise is learning to dynamically set fragment resources. This will mainly be done by 1) adding internal class variables that keep track of resources in the fragment class and 2) providing "setter" methods that allow you to give those class variables a certain value.
Task Description:
Okay, now it's your turn. Follow the steps to complete this coding exercise.